<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/inc/common.jsp"%>
<html>
<head>
<title>系统日志</title>
<script type="text/javascript" src="${basePath}/business/logs/sysLogs.js" ></script>
</head>
<body>
	<div class="easyui-layout" data-options="fit:true" >
		<div data-options="region:'north', title:'查询条件',split:true,collapsed:false,footer:'#searchfooter'" style="overflow: hidden;">
			<!-- 查询条件 -->
			<div style="padding:10px 5px 45px 20px;">
				<form id="searchForm" name="searchForm" >
					<table class="search-table"  width="90%"  >
						<tr>
							<td align="right" width="10%">操作人:</td>
							<td>
								<input class="easyui-textbox" type="text" id="userId" name="userId"></input>
							</td>
							<td align="right" width="10%">日志类型:</td>
							<td>
								<input class="easyui-combobox" name="logType" id="logType" data-options="url:'<%=path%>/sys/dictionary/dicbykey.do?key=1017&type=1',method:'get',valueField:'dataCode',textField:'dataName',panelHeight:'auto'">
							</td>
							<td align="right" width="10%">操作时间:</td>
							<td>
								<input class="easyui-datebox" type="text" id="operTime" name="operTime"></input>
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div id="searchfooter" style="text-align:right;padding: 0px 10px">
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="doQry()"  data-options="iconCls:'icon-search',plain:true" >查询</a>
				<span class="search-btn-separator"></span>
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="doReset()" data-options="iconCls:'icon-cross',plain:true">重置</a>
			</div>
		</div>
		<!-- 数据列表 -->
		<div  data-options="region:'center',title:'查询结果列表'" >
			<table id="datagrList" class="easyui-datagrid"
					data-options="url:'<%=path %>/sys/sysLog/querylog.do',border:true,singleSelect:false,fit:true,fitColumns:true,pageSize:10,pagination:true,pageList:[10,20,30],rownumbers:true">
				<thead>
					<tr>
						<!-- <th data-options="field:'id',checkbox:true"></th> -->
						<th data-options="field:'user_id',align:'center',width:'15%'" >操作人</th>
						<th data-options="field:'methods',align:'center',width:'30%'">操作内容</th>
						<th data-options="field:'logtype',align:'center',width:'20%',
							formatter:function(value,row,index){
		                	return parent.formartDic(value,'1017')
		            		}" >日志类型</th>
						<th data-options="field:'oper_time',align:'center',width:'20%',formatter:changeDateTimeToString" >操作时间</th>
						<th data-options="field:'user_ip',align:'center',width:'15%'" >操作人ip</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
</body>
</html>
